const Configuration = require("webpack");
const HtmlWebpackPlugin = require("html-webpack-plugin");

/**
 * @type {Configuration} //配置注解提示
 */
const config = {
  mode: "none",
  entry: "./index.js",
  output: {
    filename: "bundle.js",
  },
  plugins: [
    // 指定模板
    new HtmlWebpackPlugin({
      template: "./index.html",
    }),
  ],
  devServer: {
    static: __dirname,
    port: 9006,
  },
};

module.exports = config;
